package day12;

import java.util.ArrayList;

public class studentUtil {
    private studentUtil(){}
    public static int ageMax (ArrayList<student> list){
        int max=list.get(0).age;
        for (int i = 1; i < list.size(); i++) {
            if(max < list.get(i).age) max=list.get(i).age;
        }
        return max;
    }
}
